import request from '@/utils/request'
// 查询语音配置列表
export function listDyvmConfig(query) {
  return request({
    url: '/integrate/dyvmConfig/page',
    method: 'get',
    params: query
  })
}

// 查询语音配置详细
export function getDyvmConfig(id) {
  return request({
    url: '/integrate/dyvmConfig/info?id='+id,
    method: 'get'
  })
}

// 新增语音配置
export function addDyvmConfig(data) {
  return request({
    url: '/integrate/dyvmConfig/save',
    method: 'post',
    data: data
  })
}

// 修改语音配置
export function editDyvmConfig(data) {
  return request({
    url: '/integrate/dyvmConfig/edit',
    method: 'post',
    data: data
  })
}

// 删除语音配置
export function delDyvmConfig(id) {
  return request({
    url: '/integrate/dyvmConfig/del?id='+id,
    method: 'delete'
  })
}

// 启用语音配置
export function enable(id) {
  return request({
    url: '/integrate/dyvmConfig/enable?id='+id,
    method: 'get'
  })
}

// 禁用语音配置
export function disable(id) {
  return request({
    url: '/integrate/dyvmConfig/disable?id='+id,
    method: 'get'
  })
}
